SMAHA00820_발송관리[비자건진].xrw 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <sendvisalst>
  11. <item>
  12. <sel/>
  13. <sendflag/>
  14. <printyn/>
  15. <senddd/>
  16. <sendaddrflag/>
  17. <pid/>
  18. <visano/>
  19. <psptno/>
  20. <engnm/>
  21. <rrgstno/>
  22. <trnfileno/>
  23. <remarks/>
  24. <orddd/>
  25. <healexamflag/>
  26. <instcd/>
  27. <healexamdetlflag/>
  28. <pkgnm/>
  29. <hngnm/>
  30. <etcuse26/>
  31. <etcuse160/>
  32. <etcusexray/>
  33. <etcuseother/>
  34. <courcmpy/>
  35. <courtracno/>
  36. <labrslt/>
  37. <pkgcd/>
  38. <rsrvno/>
  39. <rsrvdd/>
  40. <brthdd/>
  41. <sex/>
  42. <subclass/>
  43. <reqtests/>
  44. <rsltreqtests/>
  45. <specoption/>
  46. <signdr/>
  47. <signdrdept/>
  48. <signdrcd/>
  49. <signdrdeptcd/>
  50. <age/>
  51. </item>
  52. <item2>
  53. <sel/>
  54. <sendflag/>
  55. <printyn/>
  56. <senddd/>
  57. <sendaddressflag/>
  58. <pid/>
  59. <visano/>
  60. <engnm/>
  61. <rrgstno/>
  62. <engaddress/>
  63. <orddd/>
  64. <orddd2/>
  65. <healexamflag/>
  66. <instcd/>
  67. <healexamdetlflag/>
  68. <subclass/>
  69. <reqtests/>
  70. <rsltreqtests/>
  71. <specoption/>
  72. <signdr/>
  73. <signdrcd/>
  74. <signdrdept/>
  75. <signdrdeptcd/>
  76. <pkgnm/>
  77. <hngnm/>
  78. <pkgcd/>
  79. <subclass/>
  80. <requiretest/>
  81. <resultoftest/>
  82. <specialoption/>
  83. <letterdoctor/>
  84. <letterdoctordept/>
  85. <letterdoctorsign/>
  86. <sex/>
  87. <brthdd/>
  88. <age/>
  89. <rsrvdd/>
  90. <rsrvno/>
  91. <etcuse26/>
  92. <etcuse160/>
  93. <etcusexray/>
  94. <etcuseother/>
  95. <courcmpy/>
  96. <courtracno/>
  97. <trnfileno/>
  98. <remarks/>
  99. <labrslt/>
  100. </item2>
  101. <item3>
  102. <sel/>
  103. <sendflag/>
  104. <printyn/>
  105. <senddd/>
  106. <sendaddressflag/>
  107. <pid/>
  108. <visano/>
  109. <engnm/>
  110. <rrgstno/>
  111. <engaddress/>
  112. <orddd/>
  113. <orddd2/>
  114. <healexamflag/>
  115. <instcd/>
  116. <healexamdetlflag/>
  117. <subclass/>
  118. <reqtests/>
  119. <rsltreqtests/>
  120. <specoption/>
  121. <signdr/>
  122. <signdrcd/>
  123. <signdrdept/>
  124. <signdrdeptcd/>
  125. <pkgnm/>
  126. <hngnm/>
  127. <pkgcd/>
  128. <subclass/>
  129. <requiretest/>
  130. <resultoftest/>
  131. <specialoption/>
  132. <letterdoctor/>
  133. <letterdoctordept/>
  134. <letterdoctorsign/>
  135. <sex/>
  136. <brthdd/>
  137. <age/>
  138. <rsrvdd/>
  139. <rsrvno/>
  140. <etcuse26/>
  141. <etcuse160/>
  142. <etcusexray/>
  143. <etcuseother/>
  144. <courcmpy/>
  145. <courtracno/>
  146. <trnfileno/>
  147. <remarks/>
  148. <labrslt/>
  149. </item3>
  150. </sendvisalst>
  151. <sendresultflag>V</sendresultflag>
  152. <letterlist>
  153. <item3>
  154. <subclass/>
  155. <requiretest/>
  156. <resultoftest/>
  157. <specialoption/>
  158. <letterdoctor/>
  159. <letterdoctordept/>
  160. <letterdoctorsign/>
  161. </item3>
  162. </letterlist>
  163. </main>
  164. <send>
  165. <instcd/>
  166. <srchsendflag/>
  167. <healexamflag/>
  168. <healexamdetlflag/>
  169. <srchfromdd/>
  170. <srchtodd/>
  171. <visano/>
  172. <save>
  173. <senddata/>
  174. <updata>
  175. </updata>
  176. <indata/>
  177. <inslett/>
  178. <lettdata>
  179. <sel/>
  180. <sendflag/>
  181. <printyn/>
  182. <senddd/>
  183. <sendaddressflag/>
  184. <pid/>
  185. <visano/>
  186. <engnm/>
  187. <rrgstno/>
  188. <engaddress/>
  189. <orddd/>
  190. <healexamflag/>
  191. <instcd/>
  192. <healexamdetlflag/>
  193. <subclass/>
  194. <requiretest/>
  195. <resultoftest/>
  196. <specialoption/>
  197. <letterdoctor/>
  198. <letterdoctordept/>
  199. <letterdoctorsign/>
  200. <pkgnm/>
  201. <hngnm/>
  202. <pkgcd/>
  203. </lettdata>
  204. </save>
  205. <srchvisa>
  206. <req>
  207. <sendflag/>
  208. <instcd/>
  209. <healexamflag/>
  210. <healexamdetlflag/>
  211. <fromdd/>
  212. <todd/>
  213. <pid/>
  214. <visano/>
  215. <brthareacnts/>
  216. </req>
  217. </srchvisa>
  218. <srchvisa2>
  219. <req>
  220. <sendflag/>
  221. <instcd/>
  222. <healexamflag/>
  223. <healexamdetlflag/>
  224. <fromdd/>
  225. <todd/>
  226. <pid/>
  227. <visano/>
  228. <subclass/>
  229. <requiretest/>
  230. <resultoftest/>
  231. <specialoption/>
  232. <letterdoctor/>
  233. <letterdoctordept/>
  234. <letterdoctorsign/>
  235. <brthareacnts/>
  236. </req>
  237. </srchvisa2>
  238. <srchvisa3>
  239. <req>
  240. <sendflag/>
  241. <instcd/>
  242. <healexamflag/>
  243. <healexamdetlflag/>
  244. <fromdd/>
  245. <todd/>
  246. <pid/>
  247. <visano/>
  248. <brthareacnts/>
  249. </req>
  250. </srchvisa3>
  251. <visadata>
  252. <insdata>
  253. <req>
  254. <sel/>
  255. <sendflag/>
  256. <printyn/>
  257. <senddd/>
  258. <sendaddressflag/>
  259. <pid/>
  260. <visano/>
  261. <engnm/>
  262. <rrgstno/>
  263. <engaddress/>
  264. <orddd/>
  265. <healexamflag/>
  266. <instcd/>
  267. <healexamdetlflag/>
  268. <subclass/>
  269. <requiretest/>
  270. <resultoftest/>
  271. <specialoption/>
  272. <letterdoctor/>
  273. <letterdoctordept/>
  274. <letterdoctorsign/>
  275. </req>
  276. </insdata>
  277. </visadata>
  278. <printdata/>
  279. <healexampid/>
  280. <ipt_pnm/>
  281. <brthareacnts/>
  282. <sendgubun/>
  283. <tmp>
  284. <sendflag/>
  285. </tmp>
  286. </send>
  287. <init>
  288. <baseinfo>
  289. <sendflag>
  290. <A0483>
  291. <cdid/>
  292. <cdnm/>
  293. </A0483>
  294. </sendflag>
  295. <healexamdetlflag>
  296. <A0070>
  297. <cdid/>
  298. <cdnm/>
  299. </A0070>
  300. </healexamdetlflag>
  301. <doctorlst>
  302. <A0484>
  303. <cdid/>
  304. <cdnm/>
  305. </A0484>
  306. </doctorlst>
  307. <doctordeptlst>
  308. <A0485>
  309. <cdid/>
  310. <cdnm/>
  311. </A0485>
  312. </doctordeptlst>
  313. <sendaddressflag>
  314. <A0468>
  315. <cdid/>
  316. <cdnm/>
  317. </A0468>
  318. </sendaddressflag>
  319. <nationlst>
  320. <A0465>
  321. <cdid/>
  322. <cdnm/>
  323. </A0465>
  324. </nationlst>
  325. </baseinfo>
  326. </init>
  327. <hidden/>
  328. <tmp>
  329. <item2>
  330. <sel/>
  331. <sendflag/>
  332. <printyn/>
  333. <senddd/>
  334. <sendaddressflag/>
  335. <pid/>
  336. <visano/>
  337. <engnm/>
  338. <rrgstno/>
  339. <engaddress/>
  340. <orddd/>
  341. <healexamflag/>
  342. <instcd/>
  343. <healexamdetlflag/>
  344. <subclass/>
  345. <requiretest/>
  346. <resultoftest/>
  347. <specialoption/>
  348. <letterdoctor/>
  349. <letterdoctordept/>
  350. <letterdoctorsign/>
  351. <pkgnm/>
  352. <hngnm/>
  353. <pkgcd/>
  354. </item2>
  355. <print>
  356. <letter>
  357. </letter>
  358. </print>
  359. </tmp>
  360. </root>
  361. </instance>
  362. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  363. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  364. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  365. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  366. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  367. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  368. <submission id="TRAHA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sendcdlst"/>
  369. <submission id="TXAHA00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden"/>
  370. <submission id="TRZBC00101"/>
  371. <script type="javascript" ev:event="xforms-ready">
  372. <![CDATA[
  373. // 기존의 발송 관리
  374. model.removeNodeset("/root/init/baseinfo/sendflag/A0121");
  375. //비자 발송 코드
  376. model.removeNodeset("/root/init/baseinfo/sendflag/A0483");
  377. //건진 상세 구분
  378. model.removeNodeset("/root/init/baseinfo/healexamdetlflag/A0070");
  379. //비자레터 서명의사
  380. model.removeNodeset("/root/init/baseinfo/doctorlst/A0484");
  381. //서명의사 부서구분
  382. model.removeNodeset("/root/init/baseinfo/doctordeptlst/A0485");
  383. //비자 주소 상세구분
  384. model.removeNodeset("/root/init/baseinfo/sendaddressflag/A0468");
  385. //국가 구분
  386. model.removeNodeset("/root/init/baseinfo/nationlst/A0465");
  387. zbcfGetCodeList( new Array("A0483" ,"A0070","A0484","A0485","A0468","A0465"),
  388. new Array("/root/init/baseinfo/sendflag"
  389. ,"/root/init/baseinfo/healexamdetlflag"
  390. ,"/root/init/baseinfo/doctorlst"
  391. ,"/root/init/baseinfo/doctordeptlst"
  392. ,"/root/init/baseinfo/sendaddressflag"
  393. ,"/root/init/baseinfo/nationlst") );
  394. submit("TRZBC00101");
  395. fInitCtrl(true);
  396. //발송구분을 꼭 넣어줘야함
  397. //건진 상세 구분
  398. cmb_healexamdetlflag.select(0);
  399. cmb_brthareacnts.select(1);
  400. cmb_sendgubun.select(0);
  401. submit("TRAHA00618");
  402. cmb_sendflag.select(0);
  403. model.refresh();
  404. ]]>
  405. </script>
  406. <submission id="TRAHA00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/senddata" resultref="/root/tmp"/>
  407. <submission id="TRAHA00810" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  408. <submission id="TRAHA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sendcdlst/item"/>
  409. <submission id="TRAHA00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa/req" replace="instance" resultref="/root/main/sendvisalst"/>
  410. <submission id="TRAHA00612" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa2/req" replace="instance" resultref="/root/main/sendvisalst"/>
  411. <submission id="TRAHA00613" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/indata" replace="instance" resultref="/root/tmp"/>
  412. <submission id="TRAHA00614" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/updata" replace="instance" resultref="/root/temp"/>
  413. <submission id="TRAHA00615" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/lettdata" replace="instance" resultref="/root/main/sendvisalst"/>
  414. <submission id="TRAHA00616" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/visadata/insdata/req" replace="instance" resultref="/root/temp"/>
  415. <submission id="TRAHA00617" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchvisa3/req" replace="instance" resultref="/root/main/sendvisalst"/>
  416. <submission id="TRAHA00618" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/sendflag"/>
  417. <submission id="TRAHA00619" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp" replace="instance" resultref="/root/init/baseinfo/sendaddressflag"/>
  418. </model>
  419. <script type="javascript">
  420. <![CDATA[
  421. function fGetSendList()
  422. {
  423. var vHealExamFlag="G";
  424. //기관코드가 없을 시 리턴
  425. if(getUserInfo("dutplceinstcd")=='')
  426. return;
  427. //발송구분이 없을 시 리턴 -> 발송구분 자체가 쿼리가 결정됨 또한 국가 또한 결정 되므로
  428. if(cmb_sendflag.value==""){
  429. return;
  430. }
  431. //발송조회라면 "V" 즉 건진 완료자 재검을 어떻게 처리할 지 아직은 의문
  432. //일차 협의때 건진 일자 즉 접수일자로만 하는것으로 함 판정이라는 것이 따로
  433. //없고 종료가 될지 제대로 알수 없으므로 일단 판정일자는 차후 보류할 사항
  434. if(model.getValue("/root/main/sendresultflag")=='V'){
  435. model.setValue("/root/send/srchvisa/req/instcd",getUserInfo("dutplceinstcd"));
  436. model.setValue("/root/send/srchvisa/req/sendflag",cmb_sendflag.value);
  437. model.setValue("/root/send/srchvisa/req/healexamflag",vHealExamFlag);
  438. model.setValue("/root/send/srchvisa/req/healexamdetlflag","G02");
  439. model.setValue("/root/send/srchvisa/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
  440. model.setValue("/root/send/srchvisa/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
  441. model.setValue("/root/send/srchvisa/req/pid",ipt_healexampid.currentText);
  442. model.setValue("/root/send/srchvisa/req/visano",ipt_visano.currentText);
  443. model.setValue("/root/send/srchvisa/req/brthareacnts",cmb_brthareacnts.value);
  444. submit("TRAHA00611");
  445. model.refresh();
  446. fBatchVisa();
  447. }else if(model.getValue("/root/main/sendresultflag")=='R'){ //발송 완료조회라면 "R"
  448. model.setValue("/root/send/srchvisa2/req/sendflag",cmb_sendflag.value);
  449. model.setValue("/root/send/srchvisa2/req/instcd",getUserInfo("dutplceinstcd"));
  450. model.setValue("/root/send/srchvisa2/req/healexamflag",vHealExamFlag);
  451. model.setValue("/root/send/srchvisa2/req/healexamdetlflag",cmb_healexamdetlflag.value);
  452. model.setValue("/root/send/srchvisa2/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
  453. model.setValue("/root/send/srchvisa2/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
  454. model.setValue("/root/send/srchvisa2/req/pid",ipt_healexampid.currentText);
  455. model.setValue("/root/send/srchvisa2/req/visano",ipt_visano.currentText);
  456. model.setValue("/root/send/srchvisa2/req/brthareacnts",cmb_brthareacnts.value);
  457. submit("TRAHA00612");
  458. model.refresh();
  459. }else if(model.getValue("/root/main/sendresultflag")=='A'){ //전체
  460. model.setValue("/root/send/srchvisa3/req/sendflag",cmb_sendflag.value);
  461. model.setValue("/root/send/srchvisa3/req/instcd",getUserInfo("dutplceinstcd"));
  462. model.setValue("/root/send/srchvisa3/req/healexamflag",vHealExamFlag);
  463. model.setValue("/root/send/srchvisa3/req/healexamdetlflag",cmb_healexamdetlflag.value);
  464. model.setValue("/root/send/srchvisa3/req/fromdd",getRemoveFormatter(ipt_rsvfrdd.currentText));
  465. model.setValue("/root/send/srchvisa3/req/todd",getRemoveFormatter(ipt_rsvtodd.currentText));
  466. model.setValue("/root/send/srchvisa3/req/pid",ipt_healexampid.currentText);
  467. model.setValue("/root/send/srchvisa3/req/visano",ipt_visano.currentText);
  468. model.setValue("/root/send/srchvisa3/req/brthareacnts",cmb_brthareacnts.value);
  469. submit("TRAHA00617");
  470. model.refresh();
  471. }
  472. }
  473. /*************************************************************
  474. ** 발송구분 및 발송지 일괄 세팅***************
  475. *************************************************************/
  476. function fBatchVisa(){
  477. var vGrd_Rows=grd_sendvisalst.rows;
  478. for(var i=1;i<=vGrd_Rows-2;i++){
  479. //처음조회시 호주대사관 등 나라가 접수 되었을 시에 abcd그런것들이 자동으로검색되어 나타내어짐
  480. //즉 국가에 따라 구분이 된다는 뜻
  481. //호주 대사관 선택시
  482. if(cmb_sendflag.value=='A'){
  483. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","A");
  484. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendaddrflag","A1");
  485. }
  486. //호주 이민성 선택시
  487. if(cmb_sendflag.value=='B'){
  488. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","B");
  489. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendaddrflag","A2");
  490. }
  491. //전체 리스트 선택시
  492. if(cmb_sendflag.value=='C'){
  493. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","C");
  494. }
  495. if(cmb_sendflag.value=='D'){
  496. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","D");
  497. }
  498. //기타 결과지 선택시
  499. if(cmb_sendflag.value=="E"){
  500. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendflag","E");
  501. model.setValue("/root/main/sendvisalst/item["+ i +"]/sendaddrflag","D1");
  502. }
  503. }
  504. model.refresh();
  505. //모든 상태플래그 클리어
  506. grd_sendvisalst.clearStatus();
  507. }
  508. function fInitCtrl(bAll){
  509. if( bAll == true ){
  510. var curDt = getCurrentDate();
  511. var curDtf = toDatef();
  512. model.setValue(ipt_rsvfrdd.attribute("ref") , curDtf);
  513. model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
  514. //model.setValue(ipt_senddd.attribute("ref") , curDt);
  515. }
  516. model.toggle("case_A");
  517. rdo_visaflag.value = "A";
  518. }
  519. function toDatef(){
  520. return getCurrentDate().toDate().getAddDate(-15,"D").getDateFormat();
  521. }
  522. function fSaveVisaList(){
  523. //발송 완료 조회를 선택 했을 시에 에러 메세지
  524. if(rdo_visaflag.value=="R"){
  525. messageBox("발송조회를","C001");
  526. return;
  527. }
  528. var cnt = grd_sendvisalst.rows;
  529. var sendChk = "1";
  530. for(i = 0 ; i<= cnt ;i++){
  531. if(model.getValue("/root/main/sendvisalst/item["+i+"]/sel")=="Y"){
  532. //발송구분을 넣지 않았을 시에
  533. if(model.getValue("/root/main/sendvisalst/item["+i+"]/sendflag")==""){
  534. messageBox("발송구분을 ","C001");
  535. return;
  536. }
  537. //발송지를 넣지 않았을 경우
  538. if(model.getValue("/root/main/sendvisalst/item["+i+"]/sendaddrflag")==""){
  539. messageBox("발송지를 ","C001");
  540. return;
  541. }
  542. //발송일자를 넣지 않았을 경우
  543. if(model.getValue("/root/main/sendvisalst/item["+i+"]/senddd")==""){
  544. messageBox("발송일자를 ","C001");
  545. return;
  546. }
  547. grd_sendvisalst.rowStatus(i) = 2;
  548. sendChk = "2";
  549. }
  550. }
  551. if(sendChk=="1"){
  552. messageBox("등록할인원을", "C001");
  553. }
  554. else{
  555. model.setValue("/root/send/save/indata", grd_sendvisalst.getUpdateData("update"));
  556. submit("TRAHA00613");
  557. }
  558. }
  559. /****************************************************************
  560. ********* 발송자 저장을위해 ***********************
  561. ****************************************************************/
  562. function fSaveSendList(){
  563. var ret = false ;
  564. if( messageBox("발송대상정보를","Q002")==6 ){
  565. model.setValue("/root/send/req/savesend", grd_send.getUpdateData() ) ;
  566. //발송대상
  567. var idx = grd_send.row;
  568. if( idx < 0) return ;
  569. var vSendFlag = model.getValue("/root/send/srcsendlflag");
  570. // alert(vSendFlag);
  571. model.setValue("/root/send/req/sendflag" , vSendFlag);
  572. //ret = submit("TXAHB00301");
  573. //ret = submit("TXAHA00801");
  574. var vSendDD = model.getValue("/root/send/batchset/senddd");
  575. var vSendAddrFlag = model.getValue("/root/send/batchset/sendaddrflag");
  576. var cnt = grd_send.rows;
  577. var sendChk = "1";
  578. for(i = 0 ; i<= cnt ;i++){
  579. if(model.getValue("/root/main/sendcdlst/item["+i+"]/sel")=="Y"){
  580. grd_send.rowStatus(i) = 2;
  581. sendChk = "2";
  582. }
  583. }
  584. if(sendChk=="1"){
  585. messageBox("등록할인원을", "C001");
  586. }else{
  587. model.setValue("/root/send/save/senddata", grd_send.getUpdateDataAll("u"));
  588. submit("TRAHA00803");
  589. }
  590. //fSendCheck();
  591. }
  592. return ret ;
  593. }
  594. /*************************************************************************************
  595. ***************** //발송 완료된 발송자 내용 수정시 업데이트 일괄 적으로 ******
  596. *************************************************************************************/
  597. function fSaveCommitList(){
  598. var sendChk = "true";
  599. // for( var i = 2 ; i <= grd_sendcommit.rows ; i++){
  600. // if(grd_sendcommit.valueMatrix(i,grd_sendcommit.colRef("sel")) == "Y") {
  601. // alert(i);
  602. // copyNodeListType("/root/send/save/updata", "/root/main/sendvisalst/item2["+i+"]", "after");
  603. // sendChk = "true";
  604. // }
  605. // }
  606. nodeList = instance1.selectNodes("/root/main/sendvisalst/item2[sel ='Y']");
  607. var updata = getNodeListCSV(nodeList);
  608. if(sendChk == "false"){
  609. messageBox("수정할 건진자를", "C001");
  610. }else{
  611. model.setValue("/root/send/save/updata", updata);
  612. submit("TRAHA00614")
  613. }
  614. }
  615. //초기화 함수
  616. function fnit(){
  617. model.reset("/root/main/sendvisalst/item");
  618. model.reset("/root/main/sendvisalst/item2");
  619. model.reset("/root/main/sendvisalst/item3");
  620. model.resetInstanceNode("/root/main/letterlist/item3");
  621. }
  622. function fSendCheck()
  623. {
  624. }
  625. //일괄적용
  626. /*
  627. function fBatchSet()
  628. {
  629. var senddd = model.getValue("/root/send/batchset/senddd");
  630. if(model.getValue("/root/send/batchset/sendyn")=="Y"){
  631. var cnt = grd_send.rows;
  632. for (i=1;i<cnt-1;i++){
  633. model.setValue("/root/main/sendcdlst/item[" + i + "]/sel","Y");
  634. if(senddd!=""){
  635. model.setValue("/root/main/sendcdlst/item[" + i + "]/senddd",senddd);
  636. }
  637. model.setValue("/root/main/sendcdlst/item[" + i + "]/sendaddrflag" , model.getValue("/root/send/batchset/sendaddrflag"));
  638. }
  639. }
  640. else{
  641. var cnt = grd_send.rows;
  642. for (i=1;i<cnt-1;i++){
  643. model.setValue("/root/main/sendcdlst/item[" + i + "]/sel","N");
  644. }
  645. }
  646. model.refresh();
  647. }
  648. */
  649. /********************************************************
  650. *********** 비자레터 테이블 더블 클릭시 레터 조회 ******
  651. ********************************************************/
  652. function fSrchLetter(){
  653. //현재 선택한 로우를 반환
  654. var vGrd_commit=grd_sendcommit.row;
  655. var vGrd_commit2=grd_sendcommit.row-1;
  656. var vGrd_commit3=grd_sendcommit.row+1;
  657. //입력이 없을시에 메세지 표시
  658. //fMsgCheck();
  659. //선택한 테이블이 없다는 뜻
  660. // alert(vGrd_commit2);
  661. if(vGrd_commit2==-1){
  662. messageBox("레터저장할 인원을 ","C001");
  663. return;
  664. }
  665. model.setValue("/root/send/save/lettdata/sel",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/sel"));
  666. model.setValue("/root/send/save/lettdata/sendflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/sendflag"));
  667. model.setValue("/root/send/save/lettdata/printyn",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/printyn"));
  668. model.setValue("/root/send/save/lettdata/senddd",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/senddd"));
  669. model.setValue("/root/send/save/lettdata/sendaddressflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/sendaddressflag"));
  670. model.setValue("/root/send/save/lettdata/pid",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/pid"));
  671. model.setValue("/root/send/save/lettdata/visano",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/visano"));
  672. model.setValue("/root/send/save/lettdata/engnm",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/engnm"));
  673. model.setValue("/root/send/save/lettdata/rrgstno",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/rrgstno"));
  674. model.setValue("/root/send/save/lettdata/engaddress",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/engaddress"));
  675. model.setValue("/root/send/save/lettdata/orddd",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/orddd"));
  676. model.setValue("/root/send/save/lettdata/healexamflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/healexamflag"));
  677. model.setValue("/root/send/save/lettdata/instcd",getUserInfo("dutplceinstcd"));
  678. model.setValue("/root/send/save/lettdata/healexamdetlflag",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/healexamdetlflag"));
  679. model.setValue("/root/send/save/lettdata/pkgnm",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/pkgnm"));
  680. model.setValue("/root/send/save/lettdata/hngnm",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/hngnm"));
  681. model.setValue("/root/send/save/lettdata/pkgcd",model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]/pkgcd"));
  682. //alert(model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit + "]/sel"));
  683. //alert(model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit2 + "]"));
  684. //alert(model.getValue("/root/main/sendvisalst/item2[" + vGrd_commit3 + "]/sel"));
  685. //var vCommit_data=grd_sendcommit.rowData(grd_sendcommit.row);
  686. //alert(vCommit_data);
  687. //model.setValue("/root/send/save/lettdata",vCommit_data);
  688. submit("TRAHA00615");
  689. model.setValue("/root/main/letterlist/item3/subclass",model.getValue("/root/main/sendvisalst/item2/subclass"));
  690. model.setValue("/root/main/letterlist/item3/requiretest",model.getValue("/root/main/sendvisalst/item2/requiretest"));
  691. model.setValue("/root/main/letterlist/item3/resultoftest",model.getValue("/root/main/sendvisalst/item2/resultoftest"));
  692. model.setValue("/root/main/letterlist/item3/specialoption",model.getValue("/root/main/sendvisalst/item2/specialoption"));
  693. model.setValue("/root/main/letterlist/item3/letterdoctor",model.getValue("/root/main/sendvisalst/item2/letterdoctor"));
  694. model.setValue("/root/main/letterlist/item3/letterdoctordept",model.getValue("/root/main/sendvisalst/item2/letterdoctordept"));
  695. //서명 들어갈 부분
  696. //model.setValue("",model.getValue(""));
  697. //model.refresh();
  698. }
  699. /*******************************************************************
  700. ******** 발송자 완료 입력 체크 함수 *****************
  701. *******************************************************************/
  702. function fMsgCheck(){
  703. //현재 선택한 로우를 반환
  704. var vGrd_commit=grd_sendcommit.row;
  705. //차후 함수로 구현해야 할듯
  706. if(grd_sendcommit.valueMatrix(vGrd_commit,2)==""){
  707. messageBox("발송구분을 ","C001");
  708. return;
  709. }
  710. if(grd_sendcommit.valueMatrix(vGrd_commit,6)==""){
  711. messageBox("등록번호를 ","C001");
  712. return;
  713. }
  714. if(grd_sendcommit.valueMatrix(vGrd_commit,7)==""){
  715. messageBox("비자년번를 ","C001");
  716. return;
  717. }
  718. if(grd_sendcommit.valueMatrix(vGrd_commit,11)==""){
  719. messageBox("건진일자를 ","C001");
  720. return;
  721. }
  722. if(grd_sendcommit.valueMatrix(vGrd_commit,17)==""){
  723. messageBox("패키지코드를 ","C001");
  724. return;
  725. }
  726. }
  727. /**********************************************************
  728. ******** 비자레터 내용을 저장
  729. 업데이트 시키므로 인서트 할 필요가 없다 ******
  730. ***********************************************************/
  731. function fSaveLetter(){
  732. //현재 선택한 행
  733. var vComit_row=grd_sendcommit.bottomRow-1;
  734. //업데이트 할 데이터시 필요한 데이터 유무 체크
  735. //fMsgCheck();
  736. //조회된 발송 완료자가 없을 시에
  737. if(grd_sendcommit.rows==-1){
  738. messageBox("저장할 테이블이 없습니다","C001");
  739. return;
  740. }
  741. var nodeList = instance1.selectNodes(grd_sendvisalst.nodeset + "[sel='Y']");
  742. for( var i = 0 ; i <= nodeList.length ; i++){
  743. copyNodeListType("/root/send/visadata/insdata/req", "/root/main/sendvisalst/item["+ i +"]", "after");
  744. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/sel"));
  745. // model.setValue("/root/send/visadata/insdata/req/sendflag",model.getValue("/root/main/sendvisalst/item[" + i + "]/sendflag"));
  746. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/sendflag"));
  747. // model.setValue("/root/send/visadata/insdata/req/senddd",model.getValue("/root/main/sendvisalst/item[" + i + "]/senddd"));
  748. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/senddd"));
  749. // model.setValue("/root/send/visadata/insdata/req/sendaddressflag",model.getValue("/root/main/sendvisalst/item[" + i + "]/sendaddressflag"));
  750. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/sendaddressflag"));
  751. // model.setValue("/root/send/visadata/insdata/req/pid",model.getValue("/root/main/sendvisalst/item[" + i + "]/pid"));
  752. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/pid"));
  753. // model.setValue("/root/send/visadata/insdata/req/visano",model.getValue("/root/main/sendvisalst/item[" + i + "]/visano"));
  754. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/visano"));
  755. // model.setValue("/root/send/visadata/insdata/req/orddd",model.getValue("/root/main/sendvisalst/item[" + i + "]/orddd"));
  756. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/orddd"));
  757. // model.setValue("/root/send/visadata/insdata/req/healexamflag",fGetHealExamFlag());
  758. // model.setValue("/root/send/visadata/insdata/req/instcd",getUserInfo("dutplceinstcd"));
  759. // model.setValue("/root/send/visadata/insdata/req/healexamdetlflag",model.getValue("/root/main/sendvisalst/item[" + i + "]/healexamdetlflag"));
  760. // alert(model.getValue("/root/main/sendvisalst/item[" + i + "]/healexamdetlflag"));
  761. }
  762. // model.setValue("/root/send/visadata/insdata/req/subclass",tar_subclass.currentText);
  763. // model.setValue("/root/send/visadata/insdata/req/requiretest",tar_requiretest.currentText);
  764. // model.setValue("/root/send/visadata/insdata/req/resultoftest",tar_resultoftest.currentText);
  765. // model.setValue("/root/send/visadata/insdata/req/specialoption",tar_specialoption.currentText);
  766. // model.setValue("/root/send/visadata/insdata/req/letterdoctor",cmb_doctorlst.value);
  767. // model.setValue("/root/send/visadata/insdata/req/letterdoctordept",cmb_doctordeptlst.value);
  768. submit("TRAHA00616");
  769. model.refresh();
  770. }
  771. function fValChange(){
  772. //발송조회 혹은 전체
  773. if(rdo_visaflag.value=="A" || rdo_visaflag.value=="V"){
  774. cap_gun.visible=true;
  775. cap_val.visible=false;
  776. }
  777. //발송완료 조회라면
  778. if(rdo_visaflag.value=="R"){
  779. cap_gun.visible=false;
  780. cap_val.visible=true;
  781. }
  782. }
  783. /***************************************************************
  784. ******** 일반 출력을 발송에 따라 출력 *********************
  785. ****************************************************************/
  786. function fNormalPrint(){
  787. model.removeNodeset("/root/tmp/print/letter/item2");
  788. for( var i = 0 ; i <= grd_sendcommit.rows ; i++){
  789. if(grd_sendcommit.valueMatrix(i,grd_sendcommit.colRef("sel")) == "Y") {
  790. //alert(i);
  791. var idx = i -1;
  792. copyNodeListType("/root/tmp/print/letter", "/root/main/sendvisalst/item2["+ idx +"]", "after");
  793. }
  794. }
  795. // 서울 호주 대사관 : A
  796. // 호주 이민 가족단위 : B
  797. // 비자건진 리스트 : C
  798. // 비자레터 : D
  799. // 기타해외 결과 : E
  800. // 비자건진 영문 결과지:F
  801. // 필리핀 결과지:G
  802. if(cmb_sendflag.value == "A"){
  803. exeReportPreview("RPAHR00304", "XMLSTR", "", "", "false","","","","","true", "", "");
  804. }else if(cmb_sendflag.value == "B"){
  805. exeReportPreview("RPAHR00301", "XMLSTR", "", "", "false","","","","","true", "", "");
  806. }else if(cmb_sendflag.value == "E"){
  807. exeReportPreview("RPAHR00302", "XMLSTR", "", "", "false","","","","","true", "", "");
  808. }else if(cmb_sendflag.value == "G"){
  809. exeReportPreview("RPAHR00306", "XMLSTR", "", "", "false","","","","","true", "", "");
  810. }else if(cmb_sendflag.value == "F"){
  811. exeReportPreview("RPAHR00305", "XMLSTR", "", "", "false","","","","","true", "", "");
  812. }
  813. }
  814. ]]>
  815. </script>
  816. </xhtml:head>
  817. <xhtml:body guideline="1,1193;2,785;2,755;2,750;2,384;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  818. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  819. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  820. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  821. <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
  822. <caption>조회</caption>
  823. <script type="javascript" ev:event="DOMActivate">
  824. <![CDATA[
  825. fnit();
  826. //나중에 비자레터로 인해 바뀔수도 있다.....
  827. //또한 주소입력때문에바뀔수도
  828. fGetSendList();
  829. ]]>
  830. </script>
  831. </button>
  832. <line id="line13" class="line_4" style="x1:1127px; y1:7px; x2:1127px; y2:29px; "/>
  833. <button id="btn_srchpat" class="icon_search" style="left:890px; top:11px; width:16px; height:16px; ">
  834. <caption/>
  835. <script type="javascript" ev:event="DOMActivate">
  836. <![CDATA[
  837. fSearchPatInfo("SMAHA00820", "pnm", ipt_healexampid.currentText , "N", "/root/send" ,ipt_healexampid.attribute("ref"), ipt_healexampnm.attribute("ref") );
  838. ]]>
  839. </script>
  840. </button>
  841. <caption id="caption10" class="search_name" style="left:730px; top:8px; width:89px; height:17px; ">환자검색 :</caption>
  842. <select1 id="cmb_sendflag" ref="/root/send/srchsendflag" class="combo_search" appearance="minimal" style="left:211px; top:8px; width:89px; height:19px; ">
  843. <choices>
  844. <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
  845. <label ref="cdnm"/>
  846. <value ref="cdid"/>
  847. </itemset>
  848. </choices>
  849. <script type="javascript" ev:event="xforms-value-changed">
  850. <![CDATA[
  851. if(cmb_sendflag.value == "G" || cmb_sendflag.value == "F" || cmb_sendflag.value == "E") {
  852. cmb_brthareacnts.select(2);
  853. }else{
  854. cmb_brthareacnts.select(1);
  855. }
  856. ]]>
  857. </script>
  858. </select1>
  859. <caption id="caption7" class="search_name" style="left:140px; top:8px; width:76px; height:17px; ">구분2 :</caption>
  860. <output id="ipt_healexampnm" ref="/root/send/ipt_pnm" class="output_fix" style="left:910px; top:8px; width:55px; height:19px; "/>
  861. <input id="ipt_healexampid" ref="/root/send/healexampid" class="input_search" style="left:820px; top:8px; width:65px; height:19px; ">
  862. <script type="javascript" ev:event="onkeyup">
  863. <![CDATA[
  864. inputEnterKey("btn_srchpat", "DOMActivate");
  865. ]]>
  866. </script>
  867. </input>
  868. <caption id="caption3" style="left:621px; top:10px; width:15px; height:20px; ">~</caption>
  869. <caption id="cap_gun" class="search_name" style="left:435px; top:8px; width:92px; height:17px; ">예약/건진일자 :</caption>
  870. <input id="ipt_rsvfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:526px; top:8px; width:90px; height:19px; "/>
  871. <input id="ipt_rsvtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:637px; top:8px; width:90px; height:19px; "/>
  872. <caption id="caption5" class="search_name" visibility="hidden" style="left:205px; top:8px; width:82px; height:17px; ">건진상세구분 :</caption>
  873. <select1 id="cmb_healexamdetlflag" ref="/root/send/healexamdetlflag" class="combo_search" visibility="hidden" appearance="minimal" sep="^" style="left:306px; top:8px; width:94px; height:19px; ">
  874. <choices>
  875. <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0070">
  876. <label ref="cdnm"/>
  877. <value ref="cdid"/>
  878. </itemset>
  879. </choices>
  880. </select1>
  881. <caption id="caption6" class="search_name" style="left:305px; top:8px; width:67px; height:17px; ">국가 :</caption>
  882. <select1 id="cmb_brthareacnts" ref="/root/send/brthareacnts" class="combo_search" appearance="minimal" sep="^" style="left:370px; top:8px; width:65px; height:19px; ">
  883. <choices>
  884. <itemset nodeset="/root/init/baseinfo/nationlst/A0465">
  885. <label ref="cdnm"/>
  886. <value ref="cdid"/>
  887. </itemset>
  888. </choices>
  889. </select1>
  890. <caption id="caption19" class="search_name" style="left:980px; top:8px; width:64px; height:17px; ">년번 :</caption>
  891. <input id="ipt_visano" ref="/root/send/visano" class="input_search" max="10" style="left:1050px; top:8px; width:70px; height:19px; "/>
  892. <caption id="cap_val" class="search_name" visibility="hidden" style="left:435px; top:8px; width:87px; height:17px; ">발 송 일 자 :</caption>
  893. <caption id="caption24" class="search_name" style="left:5px; top:8px; width:60px; height:17px; ">구분 :</caption>
  894. <select1 id="cmb_sendgubun" ref="/root/send/sendgubun" appearance="minimal" style="left:65px; top:8px; width:70px; height:19px; ">
  895. <choices>
  896. <item>
  897. <label>발송지</label>
  898. <value>S</value>
  899. </item>
  900. <item>
  901. <label>서식지</label>
  902. <value>L</value>
  903. </item>
  904. </choices>
  905. <script type="javascript" ev:event="xforms-value-changed">
  906. <![CDATA[
  907. submit("TRAHA00618");
  908. model.refresh();
  909. cmb_sendflag.select(0);
  910. ]]>
  911. </script>
  912. </select1>
  913. </group>
  914. <switch id="swt_send" style="left:0px; top:73px; width:1194px; height:660px; border-color:#c7a3cf; border-style:solid; ">
  915. <case id="case_T" style="left:0px; top:0px; width:1192px; height:667px; ">
  916. <caption id="caption1" class="tit_2" style="left:6px; top:4px; width:95px; height:14px; ">발송대상정보</caption>
  917. <line id="line1" class="line_1" style="x1:1px; y1:18px; x2:1185px; y2:18px; "/>
  918. <input id="ipt_senddd" ref="/root/send/batchset/senddd" class="input_essential" inputtype="date" style="left:90px; top:29px; width:108px; height:19px; ">
  919. <script type="javascript" ev:event="xforms-value-changed">
  920. <![CDATA[
  921. ]]>
  922. </script>
  923. </input>
  924. <select1 id="rdo_sendyn" ref="/root/send/batchset/sendyn" overflow="visible" appearance="full" cols="2" rows="1" style="left:287px; top:30px; width:63px; height:20px; border-style:none; ">
  925. <choices>
  926. <item>
  927. <label>Y</label>
  928. <value>Y</value>
  929. </item>
  930. <item>
  931. <label>N</label>
  932. <value>N</value>
  933. </item>
  934. </choices>
  935. <script type="javascript" ev:event="onclick">
  936. <![CDATA[
  937. ]]>
  938. </script>
  939. </select1>
  940. <caption id="caption15" class="cell_1" style="left:6px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송일자</caption>
  941. <caption id="caption17" class="cell_1" style="left:201px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송처리Y/N</caption>
  942. <select1 id="rdo_sendaddr" ref="/root/send/batchset/sendaddrflag" overflow="visible" appearance="full" cols="6" rows="1" style="left:438px; top:30px; width:483px; height:20px; border-style:none; ">
  943. <choices>
  944. <itemset nodeset="/root/init/baseinfo/addcdlst/A0468">
  945. <label ref="cdnm"/>
  946. <value ref="cdid"/>
  947. </itemset>
  948. </choices>
  949. </select1>
  950. <button id="btn_betsave" class="btn2_letter4" style="left:934px; top:29px; width:64px; height:19px; ">
  951. <caption>일괄적용</caption>
  952. <script type="javascript" ev:event="DOMActivate">
  953. <![CDATA[
  954. //fBatchSet();
  955. ]]>
  956. </script>
  957. </button>
  958. <caption id="caption2" class="cell_1" style="left:352px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송주소</caption>
  959. <datagrid id="grd_sendvisalst" nodeset="/root/main/sendvisalst/item" visibility="visible" autoresize="false" caption="선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자|선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자" colsep="^" colwidth="39, 110, 31, 70, 85, 75, 82, 100, 97, 105, 100, 100, 100, 100, 100, 50, 50, 50, 50, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:3px; top:23px; width:1189px; height:639px; ">
  960. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  961. <col ref="sendflag" type="combo">
  962. <choices>
  963. <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
  964. <label ref="cdnm"/>
  965. <value ref="cdid"/>
  966. </itemset>
  967. </choices>
  968. </col>
  969. <col checkvalue="Y,N" ref="printyn" type="checkbox" visibility="hidden"/>
  970. <col ref="orddd" format="yyyy-mm-dd"/>
  971. <col ref="senddd" type="inputdate"/>
  972. <col ref="sendaddrflag" type="combo">
  973. <choices>
  974. <itemset nodeset="/root/init/baseinfo/sendaddressflag/A0468">
  975. <label ref="cdnm"/>
  976. <value ref="cdid"/>
  977. </itemset>
  978. </choices>
  979. </col>
  980. <col ref="pid"/>
  981. <col ref="visano"/>
  982. <col ref="engnm"/>
  983. <col ref="hngnm"/>
  984. <col ref="rrgstno" format="999999-9******"/>
  985. <col ref="healexamflag" visibility="hidden"/>
  986. <col ref="instcd" visibility="hidden"/>
  987. <col ref="healexamdetlflag" visibility="hidden"/>
  988. <col ref="pkgnm"/>
  989. <col checkvalue="Y,N" ref="etcuse26" type="checkbox"/>
  990. <col checkvalue="Y,N" ref="etcuse160" type="checkbox"/>
  991. <col checkvalue="Y,N" ref="etcusexray" type="checkbox"/>
  992. <col checkvalue="Y,N" ref="etcuseother" type="checkbox"/>
  993. <col ref="trnfileno" type="input"/>
  994. <col ref="remarks" type="input"/>
  995. <col ref="courcmpy" type="combo">
  996. <choices>
  997. <item>
  998. <label>EMS</label>
  999. <value>ems</value>
  1000. </item>
  1001. <item>
  1002. <label>DHL</label>
  1003. <value>dhl</value>
  1004. </item>
  1005. </choices>
  1006. </col>
  1007. <col ref="courtracno" type="input"/>
  1008. <col ref="labrslt" type="input"/>
  1009. <col ref="pkgcd" visibility="hidden"/>
  1010. <col ref="rsrvno" visibility="hidden"/>
  1011. <col ref="rsrvdd" visibility="hidden" style="left:2465px; top:43px; width:100px; height:23px; "/>
  1012. <col ref="brthdd" visibility="hidden"/>
  1013. <col ref="sex" visibility="hidden"/>
  1014. <!--script type="javascript" ev:event="xforms-value-changed">
  1015. <![CDATA[
  1016. // submit("TRAHA00618");
  1017. // model.refresh();
  1018. // cmb_sendflag.select(0);
  1019. if(grd_sendvisalst.colRef("sendflag") == grd_sendvisalst.col){
  1020. var row = grd_sendvisalst.row;
  1021. model.setValue("/root/send/tmp/sendflag", grd_sendvisalst.valueMatrix(row, grd_sendvisalst.colRef("sendflag")));
  1022. submit("TRAHA00619");
  1023. model.refresh();
  1024. }
  1025. ]]>
  1026. </script-->
  1027. </datagrid>
  1028. <!--select id="checkbox1" ref="/root/tmp/item/26_sendvisalst" overflow="visible" appearance="full" style="left:1002px; top:2px; width:15px; height:15px; border-style:none; ">
  1029. <choices>
  1030. <item>
  1031. <label/>
  1032. <value/>
  1033. </item>
  1034. </choices>
  1035. </select>
  1036. <select id="checkbox2" overflow="visible" appearance="full" style="left:1052px; top:2px; width:15px; height:15px; border-style:none; ">
  1037. <choices>
  1038. <item>
  1039. <label/>
  1040. <value/>
  1041. </item>
  1042. </choices>
  1043. </select>
  1044. <select id="checkbox3" overflow="visible" appearance="full" style="left:1102px; top:2px; width:15px; height:15px; border-style:none; ">
  1045. <choices>
  1046. <item>
  1047. <label/>
  1048. <value/>
  1049. </item>
  1050. </choices>
  1051. </select>
  1052. <select id="checkbox4" overflow="visible" appearance="full" style="left:1152px; top:2px; width:15px; height:15px; border-style:none; ">
  1053. <choices>
  1054. <item>
  1055. <label/>
  1056. <value/>
  1057. </item>
  1058. </choices>
  1059. </select-->
  1060. </case>
  1061. <case id="case_L" style="left:0px; top:0px; width:1192px; height:667px; ">
  1062. <line id="line2" class="line_1" style="x1:1px; y1:23px; x2:1185px; y2:23px; "/>
  1063. <datagrid id="grd_sendcommit" nodeset="/root/main/sendvisalst/item2" visibility="visible" caption="선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자|선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자" colsep="^" colwidth="39, 110, 31, 70, 85, 75, 82, 100, 97, 105, 100, 100, 100, 100, 100, 50, 50, 50, 50, 100, 100, 100, 100, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:0px; top:25px; width:1189px; height:639px; ">
  1064. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1065. <col ref="sendflag" type="combo">
  1066. <choices>
  1067. <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
  1068. <label ref="cdnm"/>
  1069. <value ref="cdid"/>
  1070. </itemset>
  1071. </choices>
  1072. </col>
  1073. <col checkvalue="Y,N" ref="printyn" type="checkbox" visibility="hidden"/>
  1074. <col ref="orddd" format="yyyy-mm-dd"/>
  1075. <col ref="senddd" type="inputdate"/>
  1076. <col ref="sendaddrflag" type="combo">
  1077. <choices>
  1078. <itemset nodeset="/root/init/baseinfo/sendaddressflag/A0468">
  1079. <label ref="cdnm"/>
  1080. <value ref="cdid"/>
  1081. </itemset>
  1082. </choices>
  1083. </col>
  1084. <col ref="pid"/>
  1085. <col ref="visano"/>
  1086. <col ref="engnm"/>
  1087. <col ref="hngnm"/>
  1088. <col ref="rrgstno" format="999999-9******"/>
  1089. <col ref="healexamflag" visibility="hidden"/>
  1090. <col ref="instcd" visibility="hidden"/>
  1091. <col ref="healexamdetlflag" visibility="hidden"/>
  1092. <col ref="pkgnm"/>
  1093. <col checkvalue="Y,N" ref="etcuse26" type="checkbox"/>
  1094. <col checkvalue="Y,N" ref="etcuse160" type="checkbox"/>
  1095. <col checkvalue="Y,N" ref="etcusexray" type="checkbox"/>
  1096. <col checkvalue="Y,N" ref="etcuseother" type="checkbox"/>
  1097. <col ref="trnfileno" type="input"/>
  1098. <col ref="remarks" type="input"/>
  1099. <col ref="courcmpy" type="combo">
  1100. <choices>
  1101. <item>
  1102. <label>EMS</label>
  1103. <value>ems</value>
  1104. </item>
  1105. <item>
  1106. <label>DHL</label>
  1107. <value>dhl</value>
  1108. </item>
  1109. </choices>
  1110. </col>
  1111. <col ref="courtracno" type="input"/>
  1112. <col ref="labrslt" type="input"/>
  1113. <col ref="pkgcd" visibility="hidden"/>
  1114. <col ref="rsrvno" visibility="hidden"/>
  1115. <col ref="rsrvdd" visibility="hidden" style="left:2465px; top:43px; width:100px; height:23px; "/>
  1116. <col ref="brthdd" visibility="hidden"/>
  1117. <col ref="sex" visibility="hidden"/>
  1118. <!--script type="javascript" ev:event="ondblclick">
  1119. <![CDATA[
  1120. fSrchLetter();
  1121. ]]>
  1122. </script>
  1123. <script type="javascript" ev:event="onclick">
  1124. <![CDATA[
  1125. fSrchLetter();
  1126. ]]>
  1127. </script-->
  1128. </datagrid>
  1129. <caption id="caption8" class="tit_2" style="left:6px; top:4px; width:95px; height:14px; ">발송완료정보</caption>
  1130. </case>
  1131. <case id="case_A" selected="true" style="left:0px; top:0px; width:1192px; height:667px; ">
  1132. <caption id="caption4" class="tit_2" style="left:6px; top:4px; width:144px; height:13px; ">발송 대상/완료 정보</caption>
  1133. <line id="line3" class="line_1" style="x1:1px; y1:18px; x2:1185px; y2:18px; "/>
  1134. <input id="input1" ref="/root/send/batchset/senddd" class="input_essential" inputtype="date" style="left:90px; top:35px; width:108px; height:19px; ">
  1135. <script type="javascript" ev:event="xforms-value-changed">
  1136. <![CDATA[
  1137. ]]>
  1138. </script>
  1139. </input>
  1140. <select1 id="radio1" ref="/root/send/batchset/sendyn" overflow="visible" appearance="full" cols="2" rows="1" style="left:287px; top:30px; width:63px; height:20px; border-style:none; ">
  1141. <choices>
  1142. <item>
  1143. <label>Y</label>
  1144. <value>Y</value>
  1145. </item>
  1146. <item>
  1147. <label>N</label>
  1148. <value>N</value>
  1149. </item>
  1150. </choices>
  1151. <script type="javascript" ev:event="onclick">
  1152. <![CDATA[
  1153. ]]>
  1154. </script>
  1155. </select1>
  1156. <caption id="caption9" class="cell_1" style="left:6px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송일자</caption>
  1157. <caption id="caption11" class="cell_1" style="left:201px; top:28px; width:81px; height:23px; vertical-align:middle; ">발송처리Y/N</caption>
  1158. <select1 id="radio2" ref="/root/send/batchset/sendaddrflag" overflow="visible" appearance="full" cols="6" rows="1" style="left:438px; top:30px; width:483px; height:20px; border-style:none; ">
  1159. <choices>
  1160. <itemset nodeset="/root/init/baseinfo/addcdlst/A0468">
  1161. <label ref="cdnm"/>
  1162. <value ref="cdid"/>
  1163. </itemset>
  1164. </choices>
  1165. </select1>
  1166. <datagrid id="grd_sendall" nodeset="/root/main/sendvisalst/item3" visibility="visible" autoresize="false" caption="선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자|선택^발송구분^발송유무^건진일자^발송일자^발송지^등록번호^비자연번^영문이름^한글이름^주민번호^건진구분^기관코드^건진상세구분^패키지명^26^160^x-ray^other^TRN or File No^Remarks^Courier Cmpy^Courier traching number^Number of other^패키지코드^예약번호^예약일자" colsep="^" colwidth="39, 110, 31, 70, 70, 75, 82, 100, 97, 105, 83, 100, 100, 117, 100, 50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:0px; top:22px; width:1189px; height:639px; ">
  1167. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1168. <col ref="sendflag" type="combo">
  1169. <choices>
  1170. <itemset nodeset="/root/init/baseinfo/sendflag/A0483">
  1171. <label ref="cdnm"/>
  1172. <value ref="cdid"/>
  1173. </itemset>
  1174. </choices>
  1175. </col>
  1176. <col checkvalue="Y,N" ref="printyn" type="checkbox" visibility="hidden"/>
  1177. <col ref="orddd" format="yyyy-mm-dd"/>
  1178. <col ref="senddd" format="yyyy-mm-dd"/>
  1179. <col ref="sendaddrflag" type="combo">
  1180. <choices>
  1181. <itemset nodeset="/root/init/baseinfo/sendaddressflag/A0468">
  1182. <label ref="cdnm"/>
  1183. <value ref="cdid"/>
  1184. </itemset>
  1185. </choices>
  1186. </col>
  1187. <col ref="pid"/>
  1188. <col ref="visano"/>
  1189. <col ref="engnm"/>
  1190. <col ref="hngnm"/>
  1191. <col ref="rrgstno" format="999999-9******"/>
  1192. <col ref="healexamflag" visibility="hidden"/>
  1193. <col ref="instcd" visibility="hidden"/>
  1194. <col ref="healexamdetlflag" visibility="hidden"/>
  1195. <col ref="pkgnm"/>
  1196. <col checkvalue="Y,N" ref="etcuse26" type="checkbox"/>
  1197. <col checkvalue="Y,N" ref="etcuse160" type="checkbox"/>
  1198. <col checkvalue="Y,N" ref="etcusexray" type="checkbox"/>
  1199. <col checkvalue="Y,N" ref="etcuseother" type="checkbox"/>
  1200. <col ref="trnfileno" type="input"/>
  1201. <col ref="remarks" type="input"/>
  1202. <col ref="courcmpy" type="combo">
  1203. <choices>
  1204. <item>
  1205. <label>EMS</label>
  1206. <value>ems</value>
  1207. </item>
  1208. <item>
  1209. <label>DHL</label>
  1210. <value>dhl</value>
  1211. </item>
  1212. </choices>
  1213. </col>
  1214. <col ref="courtracno" type="input"/>
  1215. <col ref="labrslt" type="input"/>
  1216. <col ref="pkgcd" visibility="hidden"/>
  1217. <col ref="rsrvno" visibility="hidden"/>
  1218. <col ref="rsrvdd" visibility="hidden" style="left:2465px; top:43px; width:100px; height:23px; "/>
  1219. <col ref="brthdd" visibility="hidden"/>
  1220. <col ref="sex" visibility="hidden"/>
  1221. </datagrid>
  1222. </case>
  1223. </switch>
  1224. <button id="btn_case_t" class="btn_sw" group="tab" selected="true" style="left:74px; top:49px; width:69px; height:22px; ">
  1225. <caption>발송대상</caption>
  1226. <toggle case="case_T" ev:event="onclick"/>
  1227. <script type="javascript" ev:event="DOMActivate">
  1228. <![CDATA[
  1229. rdo_visaflag.value='V';
  1230. btn_save.attribute("visibility") = "visible";
  1231. fValChange();
  1232. ]]>
  1233. </script>
  1234. </button>
  1235. <button id="btn_case_l" class="btn_sw" group="tab" style="left:143px; top:49px; width:69px; height:22px; ">
  1236. <caption>발송내역</caption>
  1237. <toggle case="case_L" ev:event="onclick"/>
  1238. <script type="javascript" ev:event="DOMActivate">
  1239. <![CDATA[
  1240. rdo_visaflag.value='R';
  1241. btn_save.attribute("visibility") = "visible";
  1242. fValChange();
  1243. ]]>
  1244. </script>
  1245. </button>
  1246. <group id="grp_letter" visibility="hidden" style="left:10px; top:290px; width:1170px; height:373px; ">
  1247. <caption id="caption13" class="cell_1" style="left:0px; top:48px; width:95px; height:45px; vertical-align:middle; ">Required tests</caption>
  1248. <caption id="caption14" class="cell_1" style="left:0px; top:97px; width:95px; height:75px; vertical-align:middle; ">Result of required tests</caption>
  1249. <caption id="caption16" class="tit_2" style="left:0px; top:0px; width:104px; height:13px; ">비자레터 정보</caption>
  1250. <caption id="caption18" class="cell_1" style="left:0px; top:176px; width:95px; height:85px; vertical-align:middle; ">Specialist Opnion</caption>
  1251. <caption id="caption20" class="cell_1" style="left:0px; top:15px; width:95px; height:30px; vertical-align:middle; ">서브클래스</caption>
  1252. <textarea id="tar_resultoftest" ref="/root/main/letterlist/item3/resultoftest" style="left:98px; top:98px; width:1069px; height:77px; "/>
  1253. <textarea id="tar_specialoption" ref="/root/main/letterlist/item3/specialoption" style="left:98px; top:176px; width:1069px; height:86px; "/>
  1254. <textarea id="tar_requiretest" ref="/root/main/letterlist/item3/requiretest" style="left:98px; top:50px; width:1069px; height:45px; "/>
  1255. <textarea id="tar_subclass" ref="/root/main/letterlist/item3/subclass" style="left:98px; top:15px; width:1069px; height:30px; "/>
  1256. <select1 id="cmb_doctordeptlst" ref="/root/main/letterlist/item3/letterdoctordept" class="combo_default" appearance="minimal" style="left:101px; top:320px; width:269px; height:19px; ">
  1257. <choices>
  1258. <itemset nodeset="/root/init/baseinfo/doctordeptlst/A0485">
  1259. <label ref="cdnm"/>
  1260. <value ref="cdid"/>
  1261. </itemset>
  1262. </choices>
  1263. </select1>
  1264. <caption id="caption21" class="cell_1" style="left:4px; top:284px; width:60px; height:20px; vertical-align:middle; ">서명의사</caption>
  1265. <caption id="caption22" class="cell_1" style="left:10px; top:320px; width:84px; height:20px; vertical-align:middle; ">서명의사부서</caption>
  1266. <select1 id="cmb_doctorlst" ref="/root/main/letterlist/item3/letterdoctor" class="combo_default" appearance="minimal" style="left:69px; top:284px; width:446px; height:19px; ">
  1267. <choices>
  1268. <itemset nodeset="/root/init/baseinfo/doctorlst/A0484">
  1269. <label ref="cdnm"/>
  1270. <value ref="cdid"/>
  1271. </itemset>
  1272. </choices>
  1273. </select1>
  1274. <textarea id="textarea1" ref="/root/main/letterlist/item3/resultoftest" style="left:98px; top:98px; width:1069px; height:77px; "/>
  1275. </group>
  1276. <button id="btn_grdsize" class="btn2_letter3" visibility="hidden" style="left:1110px; top:50px; width:53px; height:19px; ">
  1277. <caption>펼치기</caption>
  1278. <script type="javascript" ev:event="DOMActivate">
  1279. <![CDATA[
  1280. if( btn_grdsize.attribute("text") == "펼치기"){
  1281. grp_letter.visible=false;
  1282. btn_grdsize.attribute("text") = "줄이기";
  1283. swt_send.attribute("height") = parseInt(swt_send.attribute("height")) + parseInt(grp_letter.attribute("height") );
  1284. grd_sendvisalst.attribute("height") = parseInt(grd_sendvisalst.attribute("height")) + parseInt(grp_letter.attribute("height")) ;
  1285. grd_sendcommit.attribute("height") = parseInt(grd_sendcommit.attribute("height")) + parseInt(grp_letter.attribute("height")) ;
  1286. //grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) + parseInt(swt_visa.attribute("width")) ;
  1287. // swt_acptlst.attribute("width") = parseInt(swt_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
  1288. // grd_acptlst.attribute("width") = parseInt(grd_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
  1289. // grd_rsrvlst.attribute("width") = parseInt(grd_rsrvlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
  1290. // grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
  1291. }
  1292. else {
  1293. btn_grdsize.attribute("text") ="펼치기";
  1294. swt_send.attribute("height") = parseInt(swt_send.attribute("height"))-parseInt(grp_letter.attribute("height") );
  1295. grd_sendvisalst.attribute("height") = parseInt(grd_sendvisalst.attribute("height")) - parseInt(grp_letter.attribute("height")) ;
  1296. grd_sendcommit.attribute("height") = parseInt(grd_sendcommit.attribute("height")) - parseInt(grp_letter.attribute("height")) ;
  1297. grp_letter.visible=false;
  1298. }
  1299. ]]>
  1300. </script>
  1301. </button>
  1302. <select1 id="rdo_visaflag" ref="/root/main/sendresultflag" visibility="hidden" overflow="visible" appearance="full" cols="4" rows="1" style="left:225px; top:53px; width:265px; height:15px; border-style:none; ">
  1303. <choices>
  1304. <item>
  1305. <label>전체</label>
  1306. <value>A</value>
  1307. </item>
  1308. <item>
  1309. <label>발송조회</label>
  1310. <value>V</value>
  1311. </item>
  1312. <item>
  1313. <label>발송완료조회</label>
  1314. <value>R</value>
  1315. </item>
  1316. </choices>
  1317. <script type="javascript" ev:event="xforms-value-changed">
  1318. <![CDATA[
  1319. fValChange();
  1320. ]]>
  1321. </script>
  1322. </select1>
  1323. <button id="button2" class="btn_sw" group="tab" selected="true" style="left:5px; top:49px; width:69px; height:22px; ">
  1324. <caption>전체</caption>
  1325. <toggle case="case_A" ev:event="onclick"/>
  1326. <script type="javascript" ev:event="DOMActivate">
  1327. <![CDATA[
  1328. rdo_visaflag.value='A';
  1329. btn_save.attribute("visibility") = "hidden";
  1330. fValChange();
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. </group>
  1335. <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:39px; ">
  1336. <button id="button9" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; ">
  1337. <caption>취소</caption>
  1338. </button>
  1339. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1135px; top:5px; width:56px; height:22px; ">
  1340. <caption>저장</caption>
  1341. <script type="javascript" ev:event="DOMActivate">
  1342. <![CDATA[
  1343. //발송 조회 저장이라면
  1344. if(model.getValue("/root/main/sendresultflag")=='V'){
  1345. fSaveVisaList();
  1346. btn_search.dispatch("DOMActivate");
  1347. }
  1348. //발송 완료자 조회라면
  1349. else if(model.getValue("/root/main/sendresultflag")=="R"){
  1350. fSaveCommitList();
  1351. btn_search.dispatch("DOMActivate");
  1352. }else if(model.getValue("/root/main/sendresultflag")=="A"){
  1353. return;
  1354. }
  1355. ]]>
  1356. </script>
  1357. </button>
  1358. <button id="btn_normal_print" class="btn6_letter4" style="left:7px; top:5px; width:80px; height:22px; ">
  1359. <caption>일반출력</caption>
  1360. <script type="javascript" ev:event="DOMActivate">
  1361. <![CDATA[
  1362. fNormalPrint();
  1363. ]]>
  1364. </script>
  1365. </button>
  1366. <button id="btn_letter_print" class="btn6_letter4" style="left:90px; top:5px; width:80px; height:22px; ">
  1367. <caption>레터출력</caption>
  1368. <script type="javascript" ev:event="DOMActivate">
  1369. <![CDATA[
  1370. // 초기화
  1371. model.removeNodeset("/root/tmp/print/letter/item");
  1372. var nodeList = null;
  1373. var visaData = "";
  1374. if(rdo_visaflag.value== "V"){
  1375. nodeList = instance1.selectNodes("/root/main/sendvisalst/item[sel ='Y']");
  1376. visaData = getNodeListCSV(nodeList);
  1377. }else if(rdo_visaflag.value== "R"){
  1378. nodeList = instance1.selectNodes("/root/main/sendvisalst/item2[sel ='Y']");
  1379. visaData = getNodeListCSV(nodeList);
  1380. }else if(rdo_visaflag.value== "A"){
  1381. nodeList = instance1.selectNodes("/root/main/sendvisalst/item3[sel ='Y']");
  1382. visaData = getNodeListCSV(nodeList);
  1383. }
  1384. setCSVToNode("/root/tmp/print/letter" ,visaData , "item");
  1385. exeReportPreview("RPAHR00310", "XMLSTR", "", "", "false","","","","","true", "", "");
  1386. ]]>
  1387. </script>
  1388. </button>
  1389. <button id="button3" class="btn4_letter4" visibility="hidden" style="left:1050px; top:5px; width:80px; height:22px; ">
  1390. <caption>레터저장</caption>
  1391. <script type="javascript" ev:event="DOMActivate">
  1392. <![CDATA[
  1393. //alert(grd_sendcommit.rows);
  1394. fSaveLetter();
  1395. ]]>
  1396. </script>
  1397. </button>
  1398. </group>
  1399. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1400. <caption id="caption23" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">발송관리</caption>
  1401. </group>
  1402. </xhtml:body>
  1403. </xhtml:html>